]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Destroy panel barrier on shutdown
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Tue, 3 Oct 2023 07:00:45 +0000 (15:00 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Tue, 3 Oct 2023 07:00:45 +0000 (15:00 +0800)
It was being leaked, which is detected on mutter shutdown.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3011
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2975>

js/ui/layout.js

index 3ba9b9654f82ff3a0c35eaedebcc87fd2d4a631f..ff1626e249a0ef503391241d1daaade4a4b9715b 100644 (file)
@@ -243,6 +243,7 @@ export const LayoutManager = GObject.registerClass({
             }
 
             this._destroyHotCorners();
+            this._destroyPanelBarrier();
             this.uiGroup.destroy();
         });
 
@@ -575,11 +576,15 @@ export const LayoutManager = GObject.registerClass({
         });
     }
 
-    _updatePanelBarrier() {
+    _destroyPanelBarrier() {
         if (this._rightPanelBarrier) {
             this._rightPanelBarrier.destroy();
             this._rightPanelBarrier = null;
         }
+    }
+
+    _updatePanelBarrier() {
+        this._destroyPanelBarrier();
 
         if (!this.primaryMonitor)
             return;